/* @(#)GSOrderSubmitAction.java    
 *
 * Project: GS
 *
 * Modify Information:
 * =============================================================================
 *   Author       Date       Description
 *   ------------ ---------- ---------------------------------------------------
 *   Jenny Li     2006-2-14    新增
 *   Jenny Li     2006-3-14  修改查询可操作的部门，并根据需求变更增加查询字段
 * Copyright Notice:
 * =============================================================================
 *    Copyright (c) 2001-2006 Beijing HiTRUST Technology Co., Ltd. 1808 Room, 
 *        Science & Technology Building, No. 9 South Street, Zhong Guan Cun, 
 *        Haidian District, Beijing ,100081, China All rights reserved.
 *
 *    This software is the confidential and proprietary information of
 *        Beijing HiTRUST Technology Co., Ltd. ("Confidential Information").
 *        You shall not disclose such Confidential Information and shall use it
 *        only in accordance with the terms of the license agreement you entered
 *        into with HiTRUST.
 *
 * Warning:
 * =============================================================================
 * 
 */
package com.hitrust.gs.action;

import java.util.ArrayList;
import java.util.HashMap;

import system.LoginContext;

import com.hitrust.gs.business.GSUniteGwProcessor;
import com.hitrust.gs.business.GSUserProcessor;
import com.hitrust.gs.lib.GSBaseConstants;
import com.hitrust.gs.service.GSBaseAction;
import com.hitrust.gs.service.GSBaseForm;

/**
 * 进入订单提交首页面
 */
public class GSOrderSubmitAction extends GSBaseAction {

    public String execute(GSBaseForm aForm) throws Exception {
        LoginContext tOperBean = (LoginContext)aForm.getSession().getAttribute(GSBaseConstants.LOGIN);
        GSUniteGwProcessor processer = new GSUniteGwProcessor();
        ArrayList ary = processer.getWareHouseLevelName(tOperBean.getLoginWarehouseCode(),tOperBean.getLoginWarehouseCode());
        GSUserProcessor processerUser = new GSUserProcessor();
        ArrayList createUserList = processerUser.findUserByWarehouseCode(tOperBean.getLoginWarehouseCode());
        aForm.getRequest().setAttribute("organdaddr", ary);
        aForm.getRequest().setAttribute("userList", createUserList);
        return GSBaseConstants.FORWARD_SUCCESS;
    }

}
